﻿using mscook.core.domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Linq;
namespace mscook.core.repositories
{
    public class AboutUsRepository : Repository<AboutUs>,IAboutUsRepository
    {
        public IList<AboutUs> SelectShowOnHomePageOrdeyBySort(int size)
        {
            var query = (from x in this.Session.Query<AboutUs>() select x).Where(o => o.IsDelete == false).OrderBy(o => o.Sort);
            return query.Take(size).ToList();
        }
    }
}
